package com.company.作业;

import java.util.Scanner;

public class Main {
        public static void main(String[] args) {
            int sum=0;
            System.out.println("请输入本次购物价格="+"\n"+"亲，包邮吗？");
            Scanner in=new Scanner(System.in);
            int jiage= in.nextInt();
            String baoyou=in.next();
            if(baoyou.equals("yes")){
                System.out.println("实际价格="+jiage);
            }
            else if(baoyou.equals("no")){
                sum=jiage+20;
                System.out.println("实际价格="+sum);
            }




        }
    }













